package controller

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func Info(c *gin.Context) {
	//获取相关信息
	username, _ := c.Get("username")
	class, _ := c.Get("class")
	account, _ := c.Get("account")
	c.JSON(http.StatusOK, gin.H{
		"status": 200,
		"data": gin.H{
			"account":  account,
			"class":    class,
			"username": username,
		},
	})
}
